<?php
declare (strict_types=1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Images extends Model
{
    protected $table = 'pyg_goods_images';
    protected $pk = 'id';

    public function addImages($data){
        return $this->saveAll($data);
    }
    public static function delImage($id){
        return self::where('goods_id',$id)->delete();
    }
}
